package com.zhouwj.utils;

import android.app.Application;
import android.content.Context;

import com.silverknife.volley.RequestQueue;
import com.silverknife.volley.toolbox.Volley;

/**
 * Created by zhouwj on 2017/2/21.
 */

public class MyApplication extends Application {
    private static RequestQueue mRequestQueue;
    private static Application mApp;

    @Override
    public void onCreate() {
        super.onCreate();
        mApp = this;
    }

    public static RequestQueue getRequestQueue() {
        if(mRequestQueue==null){
            mRequestQueue = Volley.newRequestQueue(mApp);
        }
        return mRequestQueue;
    }
}
